Skip to content

[5.x] Don't show products without categories#1230

Merged
royduin merged 2 commits intomasterfrom
feature/dont-check-empty-category-ids
Mar 20, 2026
Merged

[5.x] Don't show products without categories#1230
royduin merged 2 commits intomasterfrom
feature/dont-check-empty-category-ids

Conversation

@Jade-GG
Copy link
Collaborator

@Jade-GG Jade-GG commented Mar 16, 2026

ref: BORDEX-1361

I've made sure to double check. The _exists_ check didn't do anything except directly cause products without categories to be shown in every single category. We only add this filter when categoryId is set, so you don't end up with a (category_ids:) error.

This also doesn't go wrong on search queries on a gibberish search within a category page (even if it did query an invalid field, which it won't because the query gets overwritten) nor does it go wrong on either ElasticSearch or OpenSearch.

From all the context I could find and test, there is no reason why this _exists_ should be here.

@Jade-GG Jade-GG marked this pull request as ready for review March 16, 2026 13:08
@royduin royduin merged commit 7306d16 into master Mar 20, 2026
14 of 15 checks passed
@royduin royduin deleted the feature/dont-check-empty-category-ids branch March 20, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants